package com.zenghus.delegate;

public class FeedTest {
    public static void main(String[] args) {
        Feed feed=new DuckFeed();
        feed.feedFood();
        feed.feedWater();
        feed=new ChickenFeed();
        feed.feedWater();
        feed.feedFood();
    }
}
